<template>
    <div>
      <td v-for="test in tests" :key="test">
        <tr>{{test}}</tr>
      </td>
      <button @click="gettests"></button>
    </div>
</template>

<script>
    export default {
        name: "testuserdata",
      data()
      {
        return{
          tests:["a","b"]
        }
      },
      mounted:function() {
          this.gettests();
      },
      methods:{
         gettests:function () {
            this.$https.get("http://localhost:8081/tests").then(
              resp=>{
                this.tests.push(resp.data);
                console.log(resp);
              }
            )
         },


      }
    }
</script>

<style scoped>

</style>
